package com.cuit.qx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 风险预警表
 * </p>
 *
 * @author lcj
 * @since 2021-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RiskWarning extends Model<RiskWarning> {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private RiskGrade riskGrade;

    public RiskGrade getRiskGrade() {
        return riskGrade;
    }

    public void setRiskGrade(RiskGrade riskGrade) {
        this.riskGrade = riskGrade;
    }

    private Integer id;

    /**
     * 模式
     */
    private String pattern;

    /**
     * 起报日期
     */
    private String startDate;

    /**
     * 起报时间
     */
    private String startTime;

    /**
     * 站点编号
     */
    private String stationId;

    /**
     * 站点名称
     */
    private String staionName;

    /**
     * 经度
     */
    private String lat;

    /**
     * 纬度
     */
    private String lon;

    /**
     * 风险等级ID
     */
    private Integer reiskId;

    /**
     * 风险值
     */
    private String timeValue;

    /**
     * 时效
     */
    private String time;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
